package com.qf.mybatis.service.impl;

import com.qf.mybatis.dao.StuDao;
import com.qf.mybatis.entity.Student;
import com.qf.mybatis.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuServiceImpl implements StuService {
    @Autowired
    private StuDao stuDao;
    @Override
    public int insert(Student student){
        return stuDao.insert(student);
    }
    @Override
    public List<Student> list(){
        return stuDao.list();
    }

}